package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.dto.LearningPlanDTO;
import com.tianji.learning.domain.po.LearningLesson;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;

import java.util.List;

/**
 * <p>
 * 学生课表 服务类
 * </p>
 *
 * @author xjs
 */
public interface ILearningLessonService extends IService<LearningLesson> {

    PageDTO<LearningLessonVO> pageQuery(PageQuery query);

    LearningLessonVO now();

    void removeUserCourses(Long userId, List<Long> courseIds);

    Long queryUserLessonByCourseId(Long user, Long courseId);

    LearningLesson getCourseStatus(Long user, Long courseId);

    Integer countLearningLessonByCourse(Long courseId);

    LearningLesson getByUserIdCourseId(Long userId, Long courseId);

    void plan(LearningPlanDTO dto);

    LearningPlanPageVO getPlans(PageQuery query);
}
